package com.pioneer.web.client.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.pioneer.common.core.domain.BaseEntity;
import java.io.Serializable;
import java.math.BigDecimal;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 *
 * @TableName cli_car
 */
@EqualsAndHashCode(callSuper = true)
@TableName(value ="cli_car")
@Data
public class CliCar extends BaseEntity implements Serializable {
    /**
     * 购物车id
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 客户id
     */
    private Long clientId;

    /**
     * 商品id
     */
    private Long goodsId;

    /**
     * 数量
     */
    private Long num;
    /**
     * 商品名称
     */
    @TableField(exist = false)
    private String goodsName;
    /**
     * 商品类别
     */
    @TableField(exist = false)
    private String category;
    /**
     * 价格
     */
    @TableField(exist = false)
    private BigDecimal price;
    /**
     * 用户名称
     */
    @TableField(exist = false)
    private String username;
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}
